var app = getApp();
const userService = require('../../services/userService');
Component({
    properties: {

    },
    data:{
        assets:app.assets,
        assetsByEnv:app.assetsByEnv,
        show:false,
        yiyestatus:''
    },
    ready:function(){
        this._yiyestatus();
          
    },
    methods: {
        clickshow(){
            if (this.data.show) {
                this.setData({
                    show:false
                })
            }else{
                this.setData({
                    show:true
                })
            }
        },
        _yiyestatus:function(){
            var uid = uid;
            var user = wx.getStorageSync('user');
            userService.getApplyInfo({openid:user.openid,project_type:4}).then((data=>{
                if(data.code == 1) {
                    this.setData({
                        yiyestatus:data.data.status
                    })
                }else{
                    wx.showToast({
                        title: data.msg,
                        icon:'none'
                    });
                }
            }),(error=>{
                wx.showToast({
                    title: data.msg,
                    icon:'none'
                });
            }));
        },
        navigateUrl:function(event) {
            var url = event.currentTarget.dataset.url;
            wx.reLaunch({
              url: url
            })
        },
    }
});